package ru.study.thinkin.chapter11;

import java.util.*;

class GrammySmith extends Process{}
class Gala extends Process{}
class Fuji extends Process{}


public class GenericAndUpcasting {

	public static void main(String[] args) {
		List<Process> apples = new ArrayList();
		apples.add(new Process());
		apples.add(new Gala());
		apples.add(new Fuji());
		for (Process c : apples) {
			System.out.println(c+" id="+c.getId());
		}
		
	}

}
